package test4

class Point(x:Int,y:Int) {
  var xc=x;
  var yc=y;
  def this(){
    this(0,0)
  }
  def show(): Unit ={
    println(s"x=$xc,y=$yc")
  }
  def move(a:Int,b:Int): Unit ={
    xc+=a
    yc+=b
  }
}
